package ch.selise.archtool.lib.builders;

import ch.selise.archtool.lib.HouseBuilder;
import ch.selise.archtool.lib.product.House;
import ch.selise.archtool.lib.product.houseunit.Basement;
import ch.selise.archtool.lib.product.houseunit.Floor;
import ch.selise.archtool.lib.product.houseunit.Roof;
import ch.selise.archtool.lib.product.houseunit.Wall;

public class SimpleHouseBuilder implements HouseBuilder {

	private House house;

	public SimpleHouseBuilder() {
		this.house = new House();
	}

	public void buildBasement() {
		this.house.setBasement(new Basement());
	}
	
	public void buildWalls() {
		for (int i = 0; i < 4; i++)
			this.house.addWall(new Wall());
	}
	
	public void buildFloors(){
		this.house.addFloor(new Floor(1));
	}

	public void buildRoof() {
		this.house.setRoof(new Roof());
	}

	public House getHouse() {
		return this.house;
	}

	

}
